Fix display of R2L lines and cursor motion in bidi buffers.
authorEli Zaretskii <eliz@gnu.org>
Sat, 1 May 2010 18:11:20 +0000 (21:11 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 1 May 2010 18:11:20 +0000 (21:11 +0300)
commitac8223bce1255c5252e2722b01631473161e7534
tree480d48412a461d01fe471cd1d7e261c6a78feb06
parentef7751bd53b89c21ad4dd0452dbf5f80f40c84e3
parent6930cb32469c6ec9fadc7ee232f2ff45b9cf77ba
Fix display of R2L lines and cursor motion in bidi buffers.

 xdisp.c (find_row_end): New function, refactored from display_line.
 (display_line): Use it.
 (extend_face_to_end_of_line): In almost-filled rows, extend only
 if the row is R2L and not continued.
 (display_line): Fix prepending of truncation glyphs to R2L rows.
 Preserve overlay and string info in row->end.
 (insert_left_trunc_glyphs): Support addition of left truncation
 glyphs to R2L rows.
 (set_cursor_from_row): Don't place cursor on the vertical border
 glyph between adjacent windows.  Fix a crash when a display string
 is continued to the next line.  Don't return zero if cursor was
 found by `cursor' property of a display string.
 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
 test for that explicitly.
src/ChangeLog